<h1>Edit account</h1>
<div class="form-field">
	<label>Username:</label>
	<b>{$user->getUsername()}</b>
</div>
<div class="form-field">
	<label>From:</label>
	<b>{if $user->getIP()}{$user->getIP()}{else}Never logged in{/if}</b>
</div>
<div class="form-field">
	<label>Member since:</label>
	<b>{$user->getRegistration()}</b>
</div>
<div class="form-field">
	<label>Latest:</label>
	<b>{if $user->getLastLogin()}{$user->getLastLogin()}{else}Never logged in{/if}</b>
</div>
<h1>Update information</h1>
<form action="" method="post">
	<div class="form-field">
		<label>Email:</label>
		<input type="text" name="email" value="{$user->getEmail()}" />
	</div>
	<div class="form-field">
		<label>Privacy code:</label>
		<input type="text" name="code" value="{$user->getCode()}" /> (optional)
	</div>
	<div class="form-field">
		<label>Activated:</label>
		<input type="radio" name="activated" value="1" class="no-border" {if $user->isActivated()}checked="checked" {/if}/> Yes <input type="radio" name="activated" value="0" class="no-border" {if !$user->isActivated()}checked="checked" {/if}/> No
	</div>
	<div class="form-field">
		<label>Administrator:</label>
		<input type="radio" name="admin" value="1" class="no-border" {if $user->isAdmin()}checked="checked" {/if}/> Yes <input type="radio" name="admin" value="0" class="no-border" {if !$user->isAdmin()}checked="checked" {/if}/> No
	</div>
	<div class="form-field">
		<label>Blocked:</label>
		<input type="radio" name="blocked" value="1" class="no-border" {if $user->isBlocked()}checked="checked" {/if}/> Yes <input type="radio" name="blocked" value="0" class="no-border" {if !$user->isBlocked()}checked="checked" {/if}/> No
	</div>
	<div class="form-field">
		<label>&nbsp;</label>
		<input type="submit" name="update_info_button" value="Update" />
	</div>
</form>
<h1>Change password</h1>
<form action="" method="post">
	<div class="form-field">
		<label>New password:</label>
		<input type="password" name="new_password" value="" />
	</div>
	<div class="form-field">
		<label>Confirm password:</label>
		<input type="password" name="confirm_password" value="" />
	</div>
	<div class="form-field">
		<label>&nbsp;</label>
		<input type="submit" name="update_pass_button" value="Update" />
	</div>
</form>